//
//  LogOutViewModel.swift
//  ExtremeHealth
//
//  Created by Zhongkai Li 李忠凯 on 2018/9/21.
//  Copyright © 2018 GanDongKeJi. All rights reserved.
//

import RxSwift
import Toast

struct LogOutViewModel {
    func logOut(bag: DisposeBag) {
        Network.request(target:
            .logOut,
                        success: { (json: LoginModel) in
                print(json)
        }, failure: { (moyaError) in
            EHToast.show(moyaError.localizedDescription)
        }, error: { (errorStr) in
            EHToast.show(errorStr)
        }, dispose: bag)
    }
}
